package com.lry.core;

import java.util.List;

public interface RaftLog {


    long append(List<Log> logs);

    long append(Log log);

    Log getLastLog();

    long getLastLogIndex();

    Log getEntry(long index);

    long getEntryTerm(long index);

    void truncateSuffix(long lastIdx);
}
